package net.javaonfly.core.dispatch;

import java.io.Serializable;

public class HandlerRouteExt implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -8061596296690769520L;

	private HandlerRoute handlerRoute;

	private Serializable id;

	public HandlerRouteExt(HandlerRoute handlerRoute, Serializable id) {
		super();
		this.handlerRoute = handlerRoute;
		this.id = id;
	}

	public HandlerRoute getHandlerRoute() {
		return handlerRoute;
	}

	public void setHandlerRoute(HandlerRoute handlerRoute) {
		this.handlerRoute = handlerRoute;
	}

	public Serializable getId() {
		return id;
	}

	public void setId(Serializable id) {
		this.id = id;
	}

	@Override
	public String toString() {
		StringBuffer sbf = new StringBuffer(handlerRoute.toString());
		sbf.append("/");
		sbf.append(String.valueOf(this.getId()));
		return sbf.toString();
	}

}
